package com.gin.kotlin.gf2gamecommunity.viewmodel

import android.util.Log
import androidx.lifecycle.ViewModel
import androidx.lifecycle.viewModelScope
import com.gin.kotlin.gf2gamecommunity.base.livedata.CachedPagingData
import com.gin.kotlin.gf2gamecommunity.pagingsource.StrategyPagingSource
import com.gin.kotlin.response.strategy.StrategyTopic

class StrategyListViewModel : ViewModel() {
    val strategyList = CachedPagingData<StrategyTopic, Int>(scope = viewModelScope) { StrategyPagingSource(it) }

    init {
        Log.i(TAG, "实例化")
    }

    companion object {
        private val TAG = StrategyListViewModel::class.java.simpleName
    }
}